package com.example.bakend.service;

import com.example.bakend.pojo.PageInfo;
import com.example.bakend.pojo.Record;
import com.example.bakend.pojo.RecordVoReaderVoBook;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface RecordService {
    Integer insertRecord(Record record);

    Record selectRecord(Integer id);

//    PageInfo selectRecords(Integer pageNum, Integer pageSize);

    PageInfo getRecords(Integer readerId,
                        Integer bookId,
                        LocalDateTime borrowDateBegin,
                        LocalDateTime borrowDateEnd,
                        Integer pageNum, Integer pageSize);

    Integer deleteRecord( List<Integer> ids);

    List<Record> selectBookIdRecord(Integer BookId);

    Integer getRestore(Integer id);


}
